<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:text="${title}">王氏美容汽车集团管理系统</title>

    <!-- Favicon -->
    <link rel="icon" type="image/svg+xml" href="/favicon.svg">
    <link rel="shortcut icon" type="image/svg+xml" href="/favicon.svg">

    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 6 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <!-- 自定义样式 -->
    <style>
        :root {
            --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            --secondary-gradient: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
            --success-gradient: linear-gradient(135deg, #2c5530 0%, #3d7c47 100%);
            --warning-gradient: linear-gradient(135deg, #8b4513 0%, #cd853f 100%);
            --royal-gold: #ffd700;
            --royal-blue: #1a1a2e;
            --royal-silver: #c0c0c0;
        }
        
        body {
            background: var(--primary-gradient);
            min-height: 100vh;
            font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="crown" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M20,80 L30,60 L40,70 L50,50 L60,70 L70,60 L80,80 Z" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23crown)"/></svg>') repeat;
            opacity: 0.3;
            z-index: -1;
        }
        
        .hero-section {
            padding: 100px 0;
            color: white;
            text-align: center;
        }
        
        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .hero-subtitle {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            border: none;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .feature-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 2rem;
            color: white;
        }
        
        .icon-customers { background: var(--secondary-gradient); }
        .icon-materials { background: var(--success-gradient); }
        .icon-services { background: var(--primary-gradient); }
        .icon-reports { background: var(--warning-gradient); }
        
        .feature-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #333;
        }
        
        .feature-desc {
            color: #666;
            line-height: 1.6;
        }
        
        .stats-section {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2rem;
            margin: 3rem 0;
        }
        
        .stat-item {
            text-align: center;
            color: white;
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            display: block;
        }
        
        .stat-label {
            font-size: 1rem;
            opacity: 0.8;
        }
        
        .btn-custom {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            margin: 0 10px;
        }
        
        .btn-custom:hover {
            background: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
            transform: translateY(-2px);
        }
        
        .footer {
            background: rgba(0, 0, 0, 0.2);
            color: white;
            text-align: center;
            padding: 2rem 0;
            margin-top: 4rem;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark" style="background: rgba(0,0,0,0.1);">
        <div class="container">
            <a class="navbar-brand fw-bold" href="/">
                <i class="fas fa-crown me-2"></i>王氏美容汽车集团
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="/"><i class="fas fa-home me-1"></i>首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/modules"><i class="fas fa-th-large me-1"></i>功能模块</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/about"><i class="fas fa-info-circle me-1"></i>关于系统</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/login"><i class="fas fa-sign-in-alt me-1"></i>登录</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="hero-section">
        <div class="container">
            <h1 class="hero-title">
                <i class="fas fa-crown me-3"></i>
                王氏美容汽车集团
            </h1>
            <p class="hero-subtitle">
                专业汽车美容服务领导品牌 | 高端定制 · 精工品质 · 贴心服务 · 王者风范
            </p>
            
            <!-- 统计数据 -->
            <div class="stats-section">
                <div class="row">
                    <div class="col-md-3 col-6">
                        <div class="stat-item">
                            <span class="stat-number">10+</span>
                            <span class="stat-label">核心功能模块</span>
                        </div>
                    </div>
                    <div class="col-md-3 col-6">
                        <div class="stat-item">
                            <span class="stat-number">100%</span>
                            <span class="stat-label">响应式设计</span>
                        </div>
                    </div>
                    <div class="col-md-3 col-6">
                        <div class="stat-item">
                            <span class="stat-number">24/7</span>
                            <span class="stat-label">系统可用性</span>
                        </div>
                    </div>
                    <div class="col-md-3 col-6">
                        <div class="stat-item">
                            <span class="stat-number">∞</span>
                            <span class="stat-label">数据容量</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="mt-4">
                <a href="/login" class="btn-custom">
                    <i class="fas fa-rocket me-2"></i>立即体验
                </a>
                <a href="/modules" class="btn-custom">
                    <i class="fas fa-list me-2"></i>功能介绍
                </a>
            </div>
        </div>
    </div>

    <!-- 功能特色 -->
    <div class="container my-5">
        <div class="row">
            <div class="col-lg-3 col-md-6">
                <div class="feature-card text-center">
                    <div class="feature-icon icon-customers">
                        <i class="fas fa-users"></i>
                    </div>
                    <h3 class="feature-title">客户管理</h3>
                    <p class="feature-desc">
                        完善的客户信息管理，会员等级体系，消费记录跟踪，提升客户满意度
                    </p>
                </div>
            </div>
            <div class="col-lg-3 col-md-6">
                <div class="feature-card text-center">
                    <div class="feature-icon icon-materials">
                        <i class="fas fa-boxes"></i>
                    </div>
                    <h3 class="feature-title">库存管理</h3>
                    <p class="feature-desc">
                        智能库存管理，自动预警提醒，材料消耗跟踪，降低运营成本
                    </p>
                </div>
            </div>
            <div class="col-lg-3 col-md-6">
                <div class="feature-card text-center">
                    <div class="feature-icon icon-services">
                        <i class="fas fa-car-wash"></i>
                    </div>
                    <h3 class="feature-title">服务管理</h3>
                    <p class="feature-desc">
                        美容项目管理，服务流程跟踪，质量评价体系，提升服务品质
                    </p>
                </div>
            </div>
            <div class="col-lg-3 col-md-6">
                <div class="feature-card text-center">
                    <div class="feature-icon icon-reports">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3 class="feature-title">数据分析</h3>
                    <p class="feature-desc">
                        全面的数据统计分析，经营报表生成，助力科学决策管理
                    </p>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-6 text-md-start text-center">
                    <p class="mb-0">
                        <i class="fas fa-crown me-1"></i>
                        2024 王氏美容汽车集团 v<span th:text="${version}">1.0.0</span>
                    </p>
                    <p class="mb-0">
                        <small><i class="fas fa-phone me-1"></i>服务热线: 400-WANGSHI (400-926-4744)</small>
                    </p>
                </div>
                <div class="col-md-6 text-md-end text-center">
                    <p class="mb-0">
                        <i class="fas fa-award me-1"></i>
                        专业汽车美容 · 王者品质服务
                    </p>
                    <p class="mb-0">
                        <small><i class="fas fa-map-marker-alt me-1"></i>总部地址: 北京市朝阳区王氏大厦</small>
                    </p>
                </div>
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    
    <script>
        // 页面加载动画
        $(document).ready(function() {
            $('.feature-card').each(function(index) {
                $(this).delay(index * 200).fadeIn(800);
            });
        });
        
        // 统计数字动画
        function animateNumbers() {
            $('.stat-number').each(function() {
                const $this = $(this);
                const text = $this.text();
                if (text.includes('+')) {
                    const num = parseInt(text);
                    $({ counter: 0 }).animate({ counter: num }, {
                        duration: 2000,
                        step: function() {
                            $this.text(Math.ceil(this.counter) + '+');
                        }
                    });
                }
            });
        }
        
        // 页面滚动时触发动画
        $(window).scroll(function() {
            const statsOffset = $('.stats-section').offset().top;
            const scrollTop = $(window).scrollTop();
            const windowHeight = $(window).height();
            
            if (scrollTop + windowHeight > statsOffset) {
                animateNumbers();
                $(window).off('scroll'); // 只执行一次
            }
        });
    </script>
</body>
</html>
